<?php

use think\facade\Route;

Route::get('action', 'action/md');
Route::group('v1', function() {
    Route::get('unitest', 'v1.unittest/unittest');

    //获取token
    Route::post('token', 'v1.Token/getToken');
    //验证token
    Route::post('tokenver', 'v1.Token/verify');

    //新增或者更新用户地址
    Route::post('useraddress', 'v1.UserAddress/save');
    //用户获取地址
    Route::get('useraddress', 'v1.UserAddress/get');

    //客户预约快递
    Route::put('express', 'v1.Express/reservation');
    //客户取件码预约快递
    Route::post('codereser', 'v1.Express/codeReservation');
    //分页查询快递
    Route::get('listexp', 'v1.Express/list');
    //获取快递公司信息
    Route::get('getcompany', 'v1.Express/getCompanyAndTime');
    //客户签收快递
    Route::put('sign', 'v1.Express/signIn');
});

